package model
{
	import com.sina.microblog.MicroBlog;
	import com.sina.microblog.data.MicroBlogDirectMessage;
	import com.sina.microblog.data.MicroBlogStatus;
	import com.sina.microblog.data.MicroBlogUser;

	[Bindable]
	public class MBSingleton
	{
		public var MB:MicroBlog = null;
		/**
		 * 
		 *User是一个数据封装类(Value Object)，该类代表一个微博用户 
		 * 
		 */
		public var User:MicroBlogUser = null;
		/**
		 * 
		 *MBStatus是一个数据封装类(Value Object)，该类代表一条微博
		 * 
		 */
		public var MBStatus:MicroBlogStatus = null;
		/**
		 * 
		 *MicroBlogDirectMessage是一个数据封装类(Value Object)，该类代表一条私信
		 * 
		 */
		public var MBDirectMessage:MicroBlogDirectMessage = null;
		
		private static var _instance:MBSingleton;
		public function MBSingleton(pvt:PrivateClass)
		{
		}
		
		public static function getInstance():MBSingleton
		{
			if(MBSingleton._instance == null)
			{
				MBSingleton._instance = new MBSingleton(new PrivateClass());
			}
			return MBSingleton._instance;
		}
	}
}
class PrivateClass
{
	public function PrivateClass()
	{		
	}
}